package com.jvm;

/**
 * @Author: tgy
 * @Date: 2020-11-05 11:58
 */
public class JVMDemo01 {

    public static void main(String[] args) {



        long maxMemory = Runtime.getRuntime().maxMemory();

        long totalMemory = Runtime.getRuntime().totalMemory();


        System.out.println(maxMemory);
        System.out.println(totalMemory);
    }
}
